package com.djz.tool.exception.errorcode;

import com.djz.tool.enums.SystemRespCodeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * 交易错误码
 * @author djz
 */
public enum BusinessErrorCode {

    SYS_OPR_ERR(Integer.valueOf(SystemRespCodeEnum.CODE_99999.getCode()), SystemRespCodeEnum.CODE_99999.getDesc());
    @Getter
    @Setter
    private Integer code;

    @Getter
    @Setter
    private String desc;

    BusinessErrorCode(Integer code, String desc) {
        this.setCode(code);
        this.setDesc(desc);
    }
}
